package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@ToString
public class BusinessFormDataDTO extends BaseDTO {

    private static final long serialVersionUID = -8292540729347861404L;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * 字段标识
     */
    @NotNull(message = "{dto.msg.linkFormData.attr.NotNull}")
    private String attr;

    /**
     * 子表单标识
     */
    private String subAttr;

    /**
     * 字段类型不能为空
     */
    @NotNull(message = "字段类型不能为空")
    private Integer fieldType;

    @NotNull(message = "saasMark不能为空")
    private Integer saasMark;

    /**
     * 模糊搜索的值
     */
    private Object value;

    /**
     * 业务类型
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;

}
